package com.sunny.myproject.client.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sunny.myproject.storem.entity.Materiel;
import com.sunny.myproject.system.entity.IdEntity;

/**
 * 物料供应商
 * @author sunny_nie
 *
 */
@Entity
@Table(name="tb_materielSupplies")
public class MaterielSupplies extends IdEntity{
	
	private Client client;
	
	private Materiel materiel;
	
	
	/**
	 * 价格 
	 */
	private double price;

	private String status;
	
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	@ManyToOne(targetEntity=Client.class)
	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	@ManyToOne(targetEntity=Materiel.class)
	public Materiel getMateriel() {
		return materiel;
	}

	public void setMateriel(Materiel materiel) {
		this.materiel = materiel;
	}

	
}
